﻿<div>
@model Poco.Table
    @using (Ajax.BeginForm("AjouterTable", "Restaurants", new AjaxOptions
            {
                HttpMethod = "POST",
                InsertionMode = InsertionMode.InsertAfter,
                UpdateTargetId = "nouvellesTables"
            }))
    {
        @Html.HiddenFor(model => Model.ZoneId) 
        <table>
            <tr>
                <th>@Html.LabelFor(model => model.Numero)</th>
                <th>@Html.LabelFor(model => model.Capacite)</th>
                <th rowspan="2"><input type="submit" value="Ajouter" /></th>
            </tr>

            <tr>
                <td>@Html.TextBoxFor(Model => Model.Numero)</td>
                <td>@Html.TextBoxFor(Model => Model.Capacite)</td>
            </tr>
        </table>
    }
</div>